#include "MainWindow.h"
#include <QApplication>
#include <QFile>
#include <QElapsedTimer>

int main(int argc, char *argv[])
{
   // SARibbonBar::initHighDpi();
    QApplication a(argc, argv);
    SARibbonBar::initHighDpi();
    QFont f = a.font();
    f.setFamily(u8"微软雅黑");
    a.setFont(f);
    QElapsedTimer cost;
    cost.start();
    QFile qss(":/qss/styleDefault.qss");
    qss.open(QFile::ReadOnly);
    qApp->setStyleSheet(qss.readAll());
    qss.close();
    MainWindow w;
    w.show();

    return a.exec();
}
